import css from "./index.module.css";
function Card(props){
    let style = props.style ? props.style : null;
    let title = props.title;
    return (
        <div className={css["card"]} style={style}>
            {title &&
                <div className={css["card-head"]}>
                    <span>{props.title}</span>
                </div>
            }
            <div className={css["card-content"]}>
                {props.children}
            </div>
        </div>
    );
}

export default Card;